<%--
  Created by IntelliJ IDEA.
  User: quercus
  Date: 2021/12/5
  Time: 23:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
    <head>
        <title>登录页面</title>
        <base href="<%=request.getContextPath()+"/"%>">
    </head>
    <body>
<h3>登录页面</h3>
        <form action="UserLoginServlet" method="post">
            <p>
                <input type="text" name="uname">${requestScope.msg}
                <%--这里用到了EL表达式，简化了msg的非空判断--%>
            </p>
            <p>
                <input type="password" name="pwd">
            </p>
            <p>
                <input type="submit" value="提交">
            </p>
        </form>
    </body>
</html>
